package org.example.integration.adapter.product;

import org.example.order.domain.Product;
import org.example.product.api.SdkProductDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface ProductConverter {
    ProductConverter INSTANCE = Mappers.getMapper(ProductConverter.class);

    Product convert(SdkProductDTO sdkProductDTO);

    List<Product> convert(List<SdkProductDTO> sdkProductDTOList);
}
